/**
 * @file   genTestData.cpp
 * @author ywl <ywl@ywl-VirtualBox>
 * @date   Wed Dec 14 19:09:22 2022
 * 
 * @brief  Generate test data
 * 
 * 
 */
#include <fstream>
#include <bits/stdc++.h>

using namespace std;

int main() {
    int vertexNum[3] = {20, 100, 500};
    for(int v : vertexNum) {
        fstream outFile("graphData"+to_string(v)+".txt", ios::out);
        outFile << v << " " << v * (v - 1) << endl;
        for(int i = 1; i <= v; ++i) {
            for(int j = 1; j <= v; ++j) {
                if(i != j) {
                    outFile << i << " " << j << " " << 1 << endl;
                }
            }
        }
        outFile << 1 << endl;
        outFile.close();
    }


    return 0;
}
